import { http } from "../utils/http";
import type { ILoginApiResponse } from "./types";

/**
 * 登录
 */
export const loginApi = (code: string) => {
  return http.get<ILoginApiResponse>(`/ucenter/webChat/callback`, {
    code,
  });
};
